<?php

namespace Tbf\Bundle\UploadBundle\Service;

use Tbf\Bundle\UploadBundle\BlobInterface;

class NameStrategy
{
    /**
     * @param  BlobInterface $blob
     * @return string        name
     * @return error
     */
    public function newName(BlobInterface $blob,$extension)
    {
        return array($blob->getContentMd5().'.'.$extension,null);
    }
}
